package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: Registration
 * Description:
 * date: 2020/5/29 0029 10:51:34
 *
 * @author 19036
 * @since JDK 1.8
 * 挂号表(registration)
 * 字段名	    属性	    约束	注释
 * id	        int	        主键	主键
 * uid	        int	        外键	用户id
 * name	        varchar(20)	非空	就诊人姓名
 * idCard	    char(18)	非空	身份证
 * phone	    char(11)	非空	手机号
 * date	        date	    非空	挂号日期
 * timeFrame	varchar(20)	非空	挂号时段
 * did	        int	外键	        医生id
 * isActivate	bit	非空	        是否就诊
 * isComment	bit	非空	        是否评论
 */
public class Registration implements Serializable {
    private int id;
    private User user;
    private String name;
    private String idCard;
    private String phone;
    private String timeFrame;
    private Doctor doctor;
    private int isActivate;
    private int isComment;

    public Registration() {
    }

    public Registration(int id, User user, String name, String idCard, String phone, String timeFrame, Doctor doctor, int isActivate, int isComment) {
        this.id = id;
        this.user = user;
        this.name = name;
        this.idCard = idCard;
        this.phone = phone;
        this.timeFrame = timeFrame;
        this.doctor = doctor;
        this.isActivate = isActivate;
        this.isComment = isComment;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTimeFrame() {
        return timeFrame;
    }

    public void setTimeFrame(String timeFrame) {
        this.timeFrame = timeFrame;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public int getIsActivate() {
        return isActivate;
    }

    public void setIsActivate(int isActivate) {
        this.isActivate = isActivate;
    }

    public int getIsComment() {
        return isComment;
    }

    public void setIsComment(int isComment) {
        this.isComment = isComment;
    }

    @Override
    public String toString() {
        return "Registration{" +
                "id=" + id +
                ", user=" + user +
                ", name='" + name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", phone='" + phone + '\'' +
                ", timeFrame='" + timeFrame + '\'' +
                ", doctor=" + doctor +
                ", isActivate=" + isActivate +
                ", isComment=" + isComment +
                '}';
    }
}
